import { Length, IsString } from 'class-validator';

class Common {
    @Length(1, 30)
    @IsString()
    name:string;

    @Length(1, 20)
    @IsString()
    code:string;
}


export class AddDto extends Common {
    
}

export class UpdateDto extends Common {
    
}
